﻿	<div class="percenter_left" style="float:none; margin-bottom:10px;">
				<div class="per_head">
					<div class="per_h_img"><img src="{THEME_STYLE_PATH}style/avatar/default/<?php if( getUserInfo($this->userid,'photo',TRUE)){echo getUserInfo($this->userid,'photo',TRUE);}else{echo 1;}?>.jpg" width="60px" height="60px"" width="60px" height="60px" /></div>
					<div class="per_h_name"><span class="g2f"><?php echo $userinfo[nickname]?></span></div>
				</div>
				<div class="per_tgjf">
					<ul>
						<li class="a1">{type_change()}币余额：<span class="ofe"><strong class="userG"><?php echo number_format($userinfo['u_coin']) ?></strong></span><img src="{THEME_STYLE_PATH}/style/images/ub.gif" /></li>
					</ul>
				</div>
				<div class="per_opt" style="border-bottom:none;">
					<ul>
						<li><a href="{U('Member/Recommend/re_reward')}" {if ACTION_NAME == 're_reward'} class="g2f" {/if}>{if ACTION_NAME == 're_reward'} <strong>推荐好友奖励</strong> {else} 推荐好友奖励 {/if}</a></li>	
						<li><a href="{U('Member/Recommend/re_link')}" {if ACTION_NAME == 're_link' || $catid == 45} class="g2f" {/if}>{if ACTION_NAME == 're_link' || $catid == 45} <strong>推荐好友链接</strong> {else} 推荐好友链接 {/if}</a></li>
						<li><a href="{U('Member/Recommend/re_four')}" {if ACTION_NAME == 're_four'} class="g2f" {/if}>{if ACTION_NAME == 're_four'} <strong>四级好友详解</strong> {else} 四级好友详解 {/if}</a><img src="{THEME_STYLE_PATH}style/images/percenter/new11.gif" style="vertical-align:-2px;"></li>
						<!--li><a href="/recommend/Sucai/" target="_blank" >推荐好友图片素材</a></li-->
						<li><a href="{U('Member/Recommend/re_list')}" {if ACTION_NAME == 're_list'} class="g2f" {/if}>{if ACTION_NAME == 're_list'} <strong>查看我的好友</strong> {else} 查看我的好友 {/if}</a></li><!--选中状态-->
					</ul>
				</div>
			</div>
			<div style="margin-bottom:10px;"><a href="{U('Member/Recommend/re_four')}" target="_blank"><img src="{THEME_STYLE_PATH}/style/images/254x60.gif" /></a></div>
			<div style="border-bottom:none;">
				<table width="254" border="0" cellpadding="0" cellspacing="1" bgcolor="#dddddd" class="Dmph_list">
		  			<tbody>
		  		  		<tr>
							<td colspan="4" bgcolor="#FFFFFF" class="top">推荐收入榜({date('m-01',time()).'-'.date('m-t',time())})</td>
		  				</tr>
		  				<tr>
							<td bgcolor="#FFFFFF" class="a1 title">排名</td>
							<td bgcolor="#FFFFFF" class="a2 title">会员昵称</td>
							<td bgcolor="#FFFFFF" class="a3 title">推荐收入</td>
					  	</tr>

		  				{pc:member action="reincome"}
		  				{loop $data $y}
		  		  		<tr>
							<td bgcolor="#FFFFFF" class="a1">{$n}</td>
							<td bgcolor="#FFFFFF" class="a2" title="{$y[nickname]}">{cutstr($y[nickname],9)}</td>
							<td bgcolor="#FFFFFF" class="a3" ><span class="ofe">{$y[change]}</span><img src="{THEME_STYLE_PATH}/style/images/ub.gif" />
							{if $n == 10 } 								
								<input type="hidden" id="change" value="{$y[change]}">
							{/if}
							</td>							
					  	</tr>
					  	{/loop}
					  	{/pc}
		  		  		
		  				<tr>
		  					<td colspan="4" bgcolor="#FFFFFF" class="my">
							我本期推荐收入：<span class="ofe">{if $changes}{$changes}{else}0{/if}</span>
							<input type="hidden" id="user_change" value="{$changes}">
							<img src="{THEME_STYLE_PATH}/style/images/ub.gif"><br><span id='s_type'>您暂未上榜</span>。&nbsp;&nbsp;<span class="da3">(数据每1小时更新)</span><br>
							<a href="/news/sys/1816/" target="_blank" class="b40link"><b>查看推荐排名奖励>></b></a>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
<script type="text/javascript">
window.onload = function(){
	var change = $('#change').val();
	var user_change = $('#user_change').val();
	if(user_change >= change){
		$('#s_type').html('您已经上榜');
	}

}

</script>